<%--
 - Copyright (c) 2009-2011 ETCORE Labs. All rights reserved. 
 - 
 - This software is the confidential and proprietary information of ETCORE Labs. 
 - You shall not disclose such confidential information and shall use it only
 - in accordance with the terms of the license agreement you entered into
 - with ETCORE Labs.
 -
 - Support can be obtained from support forums at:
 - http://www.etcore.com/
 -
 - @author: ETCORE GroupTalk developers
 -
 --%>
<%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ taglib uri="http://jakarta.apache.org/taglibs/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title><c:out value='${context.edit_group }' />-<c:out
	value='${group.name }' />-<c:out value='${context.title}' /></title>
<link rel="stylesheet" href="/group/css/styles.css" type="text/css">
<script type="text/javascript" src="/group/autosuggest/js/note.js"></script>
<script language="javascript">
function checkGroupForm()
{
if(GroupForm.name.value==""||GroupForm.name.value.replace(/(^\s*)|(\s*$)/g, "")=="")
{
alert("<c:out value='${context.msg_name_null }' />");
GroupForm.name.focus();
return false;
}
if(GroupForm.pic.disabled==false&&GroupForm.pic.value=="")
{
alert("<c:out value='${context.msg_image_error }' />");
GroupForm.name.focus();
return false;
}

return true;
}


function ChS1()
{
if(GroupForm.s1.checked){
GroupForm.pic.disabled=false;

}
else
{
GroupForm.pic.disabled=true;
}
}
</script>

</head>

<body bottomMargin=0 leftMargin=10 topMargin=0 onload=preloadImages()
	rightMargin=10 marginheight="0"">

<c:import url="/group/ui-component/divdialog/divdialog.html" />
<table width="100%" border="0" cellpadding="0" cellspacing="0"
	align=center>
	<%-- //////////////////////banner --%>
	<tr>
		<td><c:import url="/banner.jsp" /></td>
	</tr>

	<tr>
		<td>

		<TABLE cellSpacing=0 cellPadding=0 width=100% border=0>
			<TBODY>
				<TR>
					<c:if test="${isAdmin }">

						<td width=120 nowrap valign=top><c:import
							url="/group/adminMenu.jsp?currentPlatform=0" /></td>

					</c:if>
					<TD width=100%>
					<table align=center cellpadding="0" cellspacing="0" border="0"
						width="100%">





						<tr>
							<td>
							<p align=center>&nbsp;<c:if test="${not empty msg}">
								<b><c:out value='${msg}' /></b>
							</c:if>&nbsp;</p>
							</td>
						</tr>




						<tr>
							<td>
							<FORM name="GroupForm" enctype="multipart/form-data"
								onSubmit="return checkGroupForm();" method=post
								action="/group/editGroup<c:out value='${context.postfix}' />?cmd=editGroup&id=<c:out value='${param.id}' />">
							<table cellpadding=2 cellspacing=2
								style="border: 1px solid #d4d2d4" rules=all width=700
								align=center>

								<tr>
									<td colspan=2 align="center" nowrap><font size="2"
										face="verdana"><b><c:out
										value='${context.edit_group}' /></b></font></td>
								</tr>

								<tr bgcolor="#ffffff">
									<td nowrap align=center width=130><c:set var='viewer'
										value='groupdetail' /> <c:if test="${group.open==3 }">
										<c:set var='viewer' value='bookmarksadmin' />
									</c:if> <a
										href="/group/<c:out value='${viewer}' /><c:out value='${context.postfix}' />?id=<c:out value='${param.id}' />">
									<c:if
										test="${not empty group.pic &&fn:indexOf(group.pic,'upload')!=-1 }">
										<img border=0 src="/<c:out value='${group.pic}' />" width=65
											height=80>
									</c:if> <c:if
										test="${empty group.pic ||fn:indexOf(group.pic,'upload')==-1 }">
										<img border=0 src="/group/images/root.gif" width=65 height=80>
									</c:if><br />
									<c:out value='${group.name}' /></a></td>
									<td>
									<table width=100%>

										<tr>
											<td nowrap style="width: 65px; overflow: hidden"><b><c:out
												value='${context.owner}' />：</b></td>
											<td><c:import
												url="/group/serverMenu.jsp?currentPlatform=${group.open}" /></td>
										</tr>
										<tr>
											<td width=80 nowrap><b><c:out
												value='${context.group_admin}' />:</b></td>
											<td><a
												href="/group/editGroup<c:out value='${context.postfix}' />?id=<c:out value='${param.id}' />"><font
												color=red><c:out value='${context.edit_group}' /></font></a>&nbsp;
											<a
												href="/group/manageTopic<c:out value='${context.postfix}' />?id=<c:out value='${param.id}' />"><c:out
												value='${context.manage_topic}' /></a>&nbsp; <c:if
												test="${group.func==1&&group.open==1 }">
												<a
													href="/group/paperView<c:out value='${context.postfix}' />?id=<c:out value='${param.id}' />"><c:out
													value='${context.paper_management}' /></a> &nbsp;</c:if> <a
												href="/group/groupdetail<c:out value='${context.postfix}' />?id=<c:out value='${param.id}' />&op=index"><c:out
												value='${context.update_index}' /></a>&nbsp;</td>
										</tr>


									</table>


									</td>

								</tr>


								<tr bgcolor="#ffffff">
									<td align="right" nowrap><c:out
										value='${context.text_name}' />&nbsp;&nbsp;</TD>
									<TD align=left><input type=text name="name" size=20
										maxlength=120 value="<c:out value='${group.name}' />"></TD>
								</TR>
								<tr bgcolor="#ffffff">
									<td align="right"><c:out value='${context.text_tag}' />&nbsp;&nbsp;<br>
									</TD>
									<TD><textarea name=info cols="40" rows="5"
										class="textarea"><c:out value='${group.info}' /></textarea> <c:out
										value='${context.msg_divide_signal}' /></TD>
								</TR>
								<tr bgcolor="#ffffff">
									<td align="right"><c:out value='${context.text_access}' />&nbsp;&nbsp;</TD>
									<TD align=left nowrap><select name=open>
										<option value="1"
											<c:if test="${1==group.open&&0==group.nav}" >selected</c:if>>${context.platform1}</option>
										<option value="11"
											<c:if test="${1==group.open&&1==group.nav}" >selected</c:if>>${context.nav1}</option>
										<option value="2"
											<c:if test="${2==group.open&&0==group.nav}" >selected</c:if>>${context.platform2}</option>
										<option value="22"
											<c:if test="${2==group.open&&1==group.nav}" >selected</c:if>>${context.nav2}</option>
										<option value="3"
											<c:if test="${3==group.open}" >selected</c:if>>${context.platform3}</option>
										<option value="4"
											<c:if test="${4==group.open}" >selected</c:if>>${context.platform4}</option>
										<option value="0"
											<c:if test="${0==group.open}" >selected</c:if>>${context.platform0}</option>
									</select></TD>
								</TR>
								<tr bgcolor="#ffffff">
									<td align="right"><c:out value='${context.text_rank}' />&nbsp;&nbsp;</TD>
									<TD align=left><select name=up>
										<option value="10000">NO</option>
										<c:set var="up" value="0" />
										<c:forEach begin="1" end="20" step="1">
											<c:set var="up" value="${up+1 }" />
											<option value="<c:out value='${up }' />"
												<c:if test="${up==group.up}" >selected</c:if>><c:out
												value='${up }' /></option>
										</c:forEach>

									</select></TD>
								</TR>
								<tr bgcolor="#ffffff">
									<td align="right"><c:out value='${context.en}' />&nbsp;&nbsp;</TD>
									<TD align=left>Yes<input type=radio name="en" value=1
										<c:if test="${group.en==1 }" > checked</c:if>> &nbsp;
									No<input type=radio name="en" value=0
										<c:if test="${group.en==0 }" > checked</c:if>></TD>
								</tr>

								<tr bgcolor="#ffffff">
									<td align="right"><c:out value='${context.local}' />&nbsp;&nbsp;</TD>
									<TD align=left>Yes<input type=radio name="local" value=1
										<c:if test="${group.local==1 }" > checked</c:if>>
									&nbsp; No<input type=radio name="local" value=0
										<c:if test="${group.local==0 }" > checked</c:if>></TD>
								</TR>
								<tr bgcolor="#ffffff">
									<td align="right"><c:out value='${context.restrict}' />&nbsp;&nbsp;</TD>
									<TD align=left>Yes<input type=radio name="func" value=1
										<c:if test="${group.func==1 }" > checked</c:if>>
									&nbsp; No<input type=radio name="func" value=0
										<c:if test="${group.func==0 }" > checked</c:if>></TD>
								</TR>
								<tr bgcolor="#ffffff">
									<td align="right"><c:out value='${context.text_icon}' />&nbsp;&nbsp;<br>
									</TD>
									<TD><input name="pic" type=file size="20" maxlength="100"
										disabled> &nbsp; &nbsp;<c:out
										value='${context.msg_edit_now}' /><input type=checkbox
										name=s1 onclick="ChS1()"></TD>
								</TR>

								<tr bgcolor="#ffffff">
									<td align="right"><c:out value='${context.text_hot_words}' />&nbsp;&nbsp;</TD>
									<TD><textarea name=notice cols="50" rows="5"
										class="textarea"><c:out value='${group.notice}' /></textarea>
									<c:out value='${context.msg_divide_signal}' /></TD>
								</TR>
								<tr>
									<td align="center" colspan=2><input type="submit"
										value="<c:out value='${context.button_ok}' />"
										style="line-height: 18px; align: center;; height: 20px; width: 90px; background: #f6f6f9; border: solid 1px">

									</td>
								</tr>
							</table>
							</FORM>
							</td>
						</tr>
					</table>
					<p></p>

					</TD>
				</TR>
			</TBODY>
		</TABLE>

		</td>
	</tr>


	<tr>
		<td><BR>
		<BR>
		<c:import url="/footer.jsp" /></td>
	</tr>


</table>





</body>
</html>

